#ifndef			SOCKET_HH__
# define		SOCKET_HH__

# include		<iostream>
# include		<sys/socket.h>
# include		<netinet/in.h>
# include		<arpa/inet.h>
# include		<netdb.h>
# include		<string>
# include		<unistd.h>

class			Socket
{
public:
  Socket():fd(0) {}
  ~Socket() {}
  bool			createSocket(void);
  bool			connectSocket(std::string, int);
  bool			closeSocket(void);
  ssize_t		readSocket(char*, size_t);
  ssize_t		writeSocket(const char*, size_t);
private:
  int			fd;
  struct sockaddr_in	sockaddr;
};

#endif		/* !SOCKET_HH__*/
